<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title></title>
<#include "/jeecms_sys/head.html"/>
<script type="text/javascript">
function getTableForm() {
	return document.getElementById('tableForm');
}
function optDelete() {
	if(Pn.checkedCount('ids')<=0) {
		alert("<@s.m 'error.checkRecord'/>");
		return;
	}
	if(!confirm("<@s.m 'global.confirm.delete'/>")) {
		return;
	}
	var f = getTableForm();
	f.action="o_delete.do";
	f.submit();
}
</script>
</head>
<body>
<div class="box-positon">
	<div class="rpos"><@s.m "global.position"/>:  <@s.m "cms.function.activities"/> - <@s.m "global.list"/></div>
	<form class="ropt">
		<input class="add" type="submit" value="<@s.m "global.add"/>" onclick="this.form.action='v_add.do';"/> 
	</form>
	<div class="clear"></div>
</div>
<div class="body-box">
<form action="v_list.do" method="post" style="padding-top:5px;">
<div>
活动标题: <input type="text" name="title" value="${title!}" style="width:200px" />

&nbsp;&nbsp;发布时间: <input type="text" name="publishDate" value="${publishDate!}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="Wdate"/>


<input class="query" type="submit" value="<@s.m "global.query"/>"/>
</div>
</form>

<form id="tableForm" method="post">
<input type="hidden" name="pageNo" value="${pageNo!}"/>
<input type="hidden" name="publishDate" value="${publishDate!}"/>
<input type="hidden" name="title" value="${title!}"/>
<@p.table value=pagination;activities,i,has_next ><#rt/>
	<@p.column title="<input type='checkbox' onclick='Pn.checkbox(\"ids\",this.checked)'/>" width="20">
		<input type='checkbox' name='ids' value='${activities.sid!}'/><#rt/>
	</@p.column><#t/>
	<@p.column code="活动标题" width="200">${activities.title!}</@p.column><#t/>
	<@p.column code="发布时间" width="150">${activities.publishTime!}</@p.column><#t/>
	<@p.column code="活动截止时间" width="150">${activities.endTime!}</@p.column><#t/>
	<@p.column code="发布人" width="100">${activities.publisher!}</@p.column><#t/>
	<@p.column code="状态" width="100">
		<#if activities.status != "1" >
		未发布
		<#else>
		已发布
		</#if>
    </@p.column><#t/>
	<@p.column code="global.operate" align="center" width="250">
	    <a href="v_view.do?id=${activities.sid}&pageNo=${pageNo!}" class="pn-opt">查看</a> | <#rt/>
	    <#if activities.status != "1">
	   	 	<a href="v_edit.do?id=${activities.sid}&pageNo=${pageNo!}&title=${title!}&publishDate=${publishDate!}" class="pn-opt"><@s.m "global.edit"/></a> | <#rt/>
			<a href="V_publish.do?id=${activities.sid}&pageNo=${pageNo!}&title=${title!}&publishDate=${publishDate!}" class="pn-opt">发布</a> | <#rt/>
	    	<a href="o_delete.do?ids=${activities.sid}&pageNo=${pageNo!}" onclick="if(!confirm('<@s.m "global.confirm.delete"/>')) {return false;}" class="pn-opt"><@s.m "global.delete"/></a> | <#rt/>
	    <#else>
	     	<@s.m "global.edit"/> | <#rt/>
			<a href="V_qxpublish.do?id=${activities.sid}&pageNo=${pageNo!}&title=${title!}&publishDate=${publishDate!}" class="pn-opt">取消发布</a> | <#rt/>
	    </#if>
		<a href="v_applyList.do?id=${activities.sid}&pageNo=${pageNo!}" class="pn-opt">报名列表</a> | <#rt/>
		<a href="v_exportExcel.do?id=${activities.sid}&pageNo=${pageNo!}" class="pn-opt">导出报名Excel</a>  <#rt/>
	</@p.column><#t/>
</@p.table>
<div><input class="del-button" type="button" value="<@s.m "global.delete"/>" onclick="optDelete();"/></div>
</form>
</div>
<#include "/common/alert_message.html"/>
</body>
</html>